<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hotel_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_mobile" class="form-control" name="row[user_mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_job_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-order_job_type" data-rule="required" class="form-control selectpicker" name="row[order_job_type]">
                {foreach name="orderJobTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_job_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_job_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[order_job_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-time_hour" class="form-control" name="row[time_hour]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Duration_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-duration_hour" class="form-control" name="row[duration_hour]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_hour" class="form-control" name="row[company_hour]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fix_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fix_hour" class="form-control" name="row[fix_hour]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[total_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('All_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-all_price" class="form-control" step="0.01" name="row[all_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_first')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_first" data-rule="required" class="form-control" name="row[user_first]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_first_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_first_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[user_first_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_first_location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_first_location" class="form-control" name="row[user_first_location]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_second')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_second" data-rule="required" class="form-control" name="row[user_second]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_second_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_second_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[user_second_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_second_location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_second_location" class="form-control" name="row[user_second_location]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_first')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_first" data-rule="required" class="form-control" name="row[company_first]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_first_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_first_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[company_first_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_first_location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_first_location" class="form-control" name="row[company_first_location]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_second')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_second" data-rule="required" class="form-control" name="row[company_second]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_second_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_second_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[company_second_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_second_location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_second_location" class="form-control" name="row[company_second_location]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_abnormal')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_abnormal" class="form-control selectpicker" name="row[is_abnormal]">
                {foreach name="isAbnormalList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_renewal')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_renewal" class="form-control selectpicker" name="row[is_renewal]">
                {foreach name="isRenewalList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
